home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Macintosh Demo Applications CD
/
Apple-MacintoshDemoApplicationsCD-1.0-1992.iso
/
More Information
/
QuicKeys
/
For Programmers Only.sea
/
Pascal Examples
/
commonExecute.a
next >
Wrap
Text File
|
1991-06-22
|
2KB
|
65 lines
; $Workfile: commonExecute.a $
; $Revision: 1.0 $
; extension execution interface code
; collects things of interest to the execution routine and calls it as:
; Procedure doExecute(wSelector: integer; var myData: ExtensionData;
; var myQueue: ExtensionQueue; wPeriodicType: integer);
; © 1990 CE Software, Inc. All rights reserved.
; For QuicKeys 2 Extension Sample source code you have a royalty-free right
; to include object code derived from this Sample source code in programs
; that you develop. You also have the right to use, distribute, and license
; such programs to third parties without payment of any further license fees
; to CE Software, Inc., so long as a copyright notice sufficient to protect
; your copyright for your software in the United States or any other country;
; is included in the graphic display of your software and on the labels
; affixed to the media on which your software is distributed.
; REVISION HISTORY:
; WHEN WHO WHAT
;Checked in by Marsh Gosnell, Wednesday, September 5, 1990 12:36:19 PM
; 8/27 MKG Created file
; 9/4 mkg added periodic type to args passed to doExecute
;•••••
;
;•••••
BLANKS OFF ;allow comments without semicolons
STRING ASIS
INCLUDE 'Traps.a'
INCLUDE 'ToolEqu.a'
INCLUDE 'SysEqu.a'
main Main export
;
;
queue dc.l 0 ;next entry in the queue
dc.l 0 ;our creator
dc.w 0 ;No, we don't need a periodic call
MyName dcb.b 32,0 ;our file name will be filled out here
MySICN dcb.b 32,0 ;our SICN gets copied here on bootup
dc.l 0 ;our refcon, if we want it
;
; Procedure MyExtern(CallType:integer; MyData:MyDataPtr);
;
import doExecute
MyExtern link A6,#0
move.w 12(a6),-(A7) ; push selector
move.l 8(A6),A0 ; get address of current key data
lea $7B4(A0),A0
move.l A0,-(A7)
pea queue ; address of our queue entry
move.w D3,-(A7) ; type of periodic
jsr doExecute
unlk A6
move.l (SP)+,A0
adda.l #6,SP
jmp (A0)
endp
end